package com.zj.docker.Repository;

import com.zj.docker.domain.Containers;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Auther: zj
 * @Date: 2018/12/11 11:27
 * @Description:
 */
public interface ContainersRepository extends JpaRepository<Containers,Integer> {

    Page<Containers> findAllByAuthor(String author, Pageable pageable);

    List<Containers> findAllByAuthor(String author);

    Containers findOneByContainerId(String containId);

}
